import { http } from "@/utils/http";

export type ResultType = ReplaceTargetType<any[]>;

// 查询所有点类型tag
export const querySport = (space: string) => {
  return http.request<ResultType>({
    url: "/nebulaApi/space/querySport",
    method: "get",
    params: {
      space,
    },
  });
};
// 查询点-边类型的属性
export const querySportProperty = (row) => {
  return http.request<any>({
    url: "/nebulaApi/space/querySportProperty",
    method: "post",
    data: row,
  });
};
// 实体查询
export const entityQuery = (row) => {
  return http.request<any>({
    url: "/nebulaApi/entity/entityQuery",
    method: "post",
    data: row,
  });
};
